<?php
namespace app\shop\validate\company;
use think\Validate;
class Report extends Validate
{
    protected $rule = [
        'id' => 'require',
        'title' => 'require',
        'file_id' => 'require',
        'department_id' => 'require',
        'station_id' => 'require',
        'type' => 'require',
    ];
    protected $message = [
        'id.require' => '参数错误',
        'title.require' => '请输入模板名称',
        'file_id.require' => '请上传模板文件',
        'department_id.require' => '请选择部门',
        'station_id.require' => '请选择岗位',
        'type.require' => '请选择报告类型',
    ];
    protected $scene = [
        'addTpl' => ['title', 'file_id', 'department_id', 'station_id', 'type'],
        'editTpl' => ['id', 'title', 'file_id', 'department_id', 'station_id', 'type'],
        'info' => ['id'],
    ];
}